package org.kiwi.job.orm.repository;

import org.apache.ibatis.annotations.Param;
import org.kiwi.job.orm.entity.JobLog;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by jack on 17/2/14.
 */
@Repository
public interface JobLogRepository {

    int deleteByPrimaryKey(Long id);

    JobLog selectByPrimaryKey(Long id);

    int updateByPrimaryKey(JobLog JobLog);

    int updateByPrimaryKeySelective(JobLog JobLog);

    int insert(JobLog JobLog);

    int insertSelective(JobLog JobLog);

    int selectCount(JobLog JobLog);

    List<JobLog> selectPage(Map params);

    List<JobLog> selectByJobCodeLastHour(@Param("jobCode") String jobCode);
}
